Skip to content

+Add runtime params KV_RESTRAT & RESTRAT_USTAR_MIN#266

Merged
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:Add_Kv_restrat
Dec 19, 2022
Merged

+Add runtime params KV_RESTRAT & RESTRAT_USTAR_MIN#266
marshallward merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:Add_Kv_restrat

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Added the runtime parameters KV_RESTRAT and RESTRAT_USTAR_MIN, to build on the improvements in github.com//pull/251, and to provide run-time physical parameters to avoid the potential division by zero in the mixed_layer_restrat code noted at github.com/mom-ocean/issues/1168. Once this PR is merged onto the main branch of MOM6, that issue can be closed. By default, these do not change answers in the MOM6-examples test suite, but the default value for RESTRAT_USTAR_MIN was taken from the hard-coded value in PR that PR. The six copies of the eddy growth rate timescale calculations were consolidated into a new internal function, growth_time, with some other related minor refactoring of the code. Also, mixedlayer_restrat_register_restarts now takes a unit_scale_type arguments like many other analogous routines. All answers are bitwise identical, but there are new runtime parameters or comments that lead to changes in the MOM_parameter_doc files.

Also clarified in the comments sent to the MOM_parameter_doc files how VISBECK_L_SCALE works as a scaling factor when it is given a negative value, but rescaled its units when read as though it were always in m.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 5, 2022

Codecov Report

Merging #266 (0790efa) into dev/gfdl (7173432) will decrease coverage by 0.04%.
The diff coverage is 86.53%.

❗ Current head 0790efa differs from pull request most recent head cacfd8c. Consider uploading reports for the commit cacfd8c to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #266      +/-   ##
============================================
- Coverage     37.12%   37.08%   -0.05%     
============================================
  Files           263      263              
  Lines         73444    73392      -52     
  Branches      13674    13677       +3     
============================================
- Hits          27268    27217      -51     
+ Misses        41151    41141      -10     
- Partials       5025     5034       +9     
Impacted Files Coverage Δ
...eterizations/lateral/MOM_lateral_mixing_coeffs.F90 42.74% <60.00%> (ø)
...ameterizations/lateral/MOM_mixed_layer_restrat.F90 72.33% <89.13%> (-1.32%) ⬇️
src/core/MOM.F90 51.23% <100.00%> (ø)
src/framework/MOM_unit_testing.F90 74.66% <0.00%> (-1.34%) ⬇️
src/framework/MOM_coms.F90 46.85% <0.00%> (-0.86%) ⬇️
src/diagnostics/MOM_obsolete_params.F90 69.31% <0.00%> (-0.69%) ⬇️
src/framework/MOM_document.F90 72.76% <0.00%> (-0.67%) ⬇️
src/framework/MOM_io.F90 32.76% <0.00%> (-0.50%) ⬇️
src/framework/MOM_checksums.F90 57.57% <0.00%> (-0.48%) ⬇️
... and 28 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Dec 8, 2022
@Hallberg-NOAA Hallberg-NOAA force-pushed the Add_Kv_restrat branch 2 times, most recently from 1c04ddc to bc0e923 Compare December 17, 2022 16:14
  Added the runtime parameters KV_RESTRAT and RESTRAT_USTAR_MIN, to build on the
improvements in github.com/NOAA-GFDL/pull/251, and to provide run-time
physical parameters to avoid the potential division by zero in the
mixed_layer_restrat code noted at github.com/mom-ocean/issues/1168. Once
this PR is merged onto the main branch of MOM6, that issue can be closed.  By
default, these do not change answers in the MOM6-examples test suite, but the
default value for RESTRAT_USTAR_MIN was taken from the hard-coded value in PR
that PR.  The six copies of the eddy growth rate timescale calculations were
consolidated into a new internal function, growth_time, with some other related
minor refactoring of the code.  Also, mixedlayer_restrat_register_restarts now
takes a unit_scale_type arguments like many other analogous routines.  All
answers are bitwise identical, but there are new runtime parameters or comments
that lead to changes in the MOM_parameter_doc files.

  Also clarified in the comments sent to the MOM_parameter_doc files how
VISBECK_L_SCALE works as a dimensional scaling factor when it is given a
negative value, and rescaled its units when read as though it were always in m.
@marshallward
Copy link
Copy Markdown
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/17727 ✔️ 🟡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants